Socket
Socket
Sign inDemoInstall

bump-regex

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bump-regex

bump RegEx with semver


Version published
Weekly downloads
12K
increased by0.27%
Maintainers
1
Weekly downloads
 
Created
Source

bump-regex

Build Status NPM version

bump regex with semver

Information

Packagebump-regex
Descriptionbump regex with semver
Node Version>= 0.9

Usage

Install
$ npm install --save bump-regex

var bump = require('bump-regex');

bump('version: "0.1.2"', function(err, out) {
  // => 'version: "0.1.3"'
});

Options

options.type

Semver version type to bump

Type: `String`
Default: `patch`
Valid values: `major|minor|patch|prerelease`

options.key

Set the versioning key

Type: `String`
Default: `version`

options.version

Set a specific version to bump to.

Type: `String`
Default: `null`

options.preid

Set the prerelase tag to use

Type: `String`
Default: `null`

Example:

  type: 'prerelease',
  preid : 'alphaWhateverTheYWant'

 // => '0.0.2-alphaWhateverTheYWant.0'

Versioning

Versioning Used: Semantic
String, lowercase
  • MAJOR ("major") version when you make incompatible API changes
  • MINOR ("minor") version when you add functionality in a backwards-compatible manner
  • PATCH ("patch") version when you make backwards-compatible bug fixes.
  • PRERELEASE ("prerelease") a pre-release version
Version example
major: 1.0.0
minor: 0.1.0
patch: 0.0.2
prerelease: 0.0.1-2

LICENSE MIT

Keywords

FAQs

Package last updated on 15 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc